package com.anne.fish.service.impl;

import com.anne.fish.dao.CatDao;
import com.anne.fish.model.Cat;
import com.anne.fish.service.CatManager;
import com.anne.fish.service.impl.GenericManagerImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import javax.jws.WebService;

@Service("catManager")
@WebService(serviceName = "CatService", endpointInterface = "com.anne.fish.service.CatManager")
public class CatManagerImpl extends GenericManagerImpl<Cat, Long> implements CatManager {
    CatDao catDao;

    @Autowired
    public CatManagerImpl(CatDao catDao) {
        super(catDao);
        this.catDao = catDao;
    }
    
    public List<Cat> findByFatherId(Long pid){
    	return this.catDao.findByFatherId(pid);
    }
}